<template>
    <input placeholder="输入内容" :value="value" class="inp" @input="e=>$emit('input',e.target.value)"/>
</template>
<script>
export default {
    props:['value']
}
</script>
<style lang="less" scoped>
.inp{
    width: 300px;
    border:#ddd 1px solid;
    box-sizing: border-box;
    border-radius: 5px;
    height: 40px;
}
</style>